Skip to content

Conversation

@voliva
Copy link
Contributor

@voliva voliva commented Mar 27, 2018

Currently, github takes a while to update his view when a URL changes. This makes it that this extension "thinks" it already injected the HTML when github refreshes the page and removes it.

In here, I check for the injected HTML tree to actually be in the DOM, so it gets reinjected when github refreshes its view.


function initialSetup() {
if ($('.js-diff-progressive-spinner').length || !$('#files').length) {
setTimeout(initialSetup, 100);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed anymore, as the setInterval of start() will recall this when the tree is missing.

@picheli20 picheli20 merged commit ebc6bd7 into picheli20:master Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants